//
//  BtnView.m
//  兼职页面
//
//  Created by kuiyuan liang on 2021/6/6.
//

#import "BtnView.h"
#import "CommonUtil.h"

@interface BtnView()

@end

@implementation BtnView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        [self addSubview:self.label1];
        [self addSubview:self.label2];
    }
    return self;
}
-(UILabel *)label1{
    if (!_label1) {
        _label1 = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, self.width, AD(25))];
        _label1.textColor = RGB(255, 90, 117);
        _label1.font = [UIFont systemFontOfSize:AD(18)];
        _label1.textAlignment = NSTextAlignmentCenter;
    }
    return _label1;
}

-(UILabel *)label2{
    if (!_label2) {
        _label2 = [[UILabel alloc] initWithFrame:CGRectMake(0, self.label1.bottom, self.width, AD(15))];
        _label2.textColor = [UIColor blackColor];
        _label2.font = [UIFont systemFontOfSize:AD(15)];
        _label2.textAlignment = NSTextAlignmentCenter;
    }
    return _label2;
}


@end
